import { createSlice } from "@reduxjs/toolkit";
interface routerListType {
    [key: string]: string
}
interface routerListState {
    routerList: routerListType
};
const initialState: routerListState = {
    routerList: {}
} as routerListState;

const routerModulesSlice = createSlice({
    name: "counter",
    initialState,
    reducers: {
        setRouter: (state, action) => {
            state.routerList = action.payload;
        },
    }
})
export const { setRouter } = routerModulesSlice.actions;
export default routerModulesSlice.reducer;